
import { defAxios as request } from '@/utils/http'

// 登录方法
export function login(userCode, password) {
  const data = {
    userCode,
    password
  }
  return request({
    url: '/login',
    headers: {
      isToken: false
    },
    method: 'post',
    data: data
  })
}

// 获取用户详细信息
export function getInfo() {
  return request({
    url: '/user/info',
    method: 'post'
  })
}

// 获取密钥信息
export function getAuth() {
  return request({
    url: '/user/auth',
    method: 'post'
  })
}


// 退出方法
export function logout() {
  return request({
    url: '/logout',
    method: 'post'
  })
}


 